import Layout from "@/layout";

/** 
 * 仓库模块路由配置
 * 路径: /warehouse
 * 包含功能: 分销清单、包装工单、采购收货、上架清单等
 */
export default {
    path: "/warehouse", // 基础路径
    component: Layout, // 使用布局组件
    redirect: "/warehouse/distributionList", // 默认重定向到分销清单页
    alwaysShow: true, // 始终显示根菜单
    name: "warehouse", // 路由名称
    meta: {
        title: "仓库管理",
        icon: "list" // 建议使用仓库图标
    },
    children: [
        // 采购收货
        {
            path: "/warehouse/purchaseReceipt",
            component: () => import("@/views/warehouse/purchaseReceipt.vue"),
            name: "purchaseReceipt",
            meta: {
                title: "采购入库单",
                icon: "list"
            }
        },
        // 上架清单
        {
            path: "/warehouse/putOnTheList",
            component: () => import("@/views/warehouse/putOnTheList.vue"),
            name: "putOnTheList",
            meta: {
                title: "上架单",
                icon: "list"
            }
        },
        // 配货单
        {
            path: "/warehouse/distributionList",
            component: () => import("@/views/warehouse/distributionList.vue"),
            name: "distributionList",
            meta: {
                title: "配货单",
                icon: "list"
            }
        },
        // 包装工单
        {
            path: "/warehouse/packagingWorkOrder",
            component: () => import("@/views/warehouse/packagingWorkOrder.vue"),
            name: "packagingWorkOrder",
            meta: {
                title: "包装报工单",
                icon: "list"
            }
        },
        // 销售发货
        {
            path: "/warehouse/salesInvoice",
            component: () => import("@/views/warehouse/salesInvoice.vue"),
            name: "salesInvoice",
            meta: {
                title: "销售发货单",
                icon: "list"
            }
        },
        // 销售退货
        {
            path: "/warehouse/returnOfSale",
            component: () => import("@/views/warehouse/returnOfSale.vue"),
            name: "returnOfSale",
            meta: {
                title: "销售退货单",
                icon: "list"
            }
        }

    ]
};